package com.jxw.test.application.service;

import com.jxw.boot.user.domain.DeviceUser;
import com.jxw.test.application.domain.entity.DeviceBind;
import com.jxw.test.application.domain.model.DeviceBindRequest;

/**
 * 设备业务接口
 */
public interface DeviceService {

    /**
     * 设备绑定流程业务
     * @param deviceBindRequest
     * @return
     */
    int deviceBind(DeviceBindRequest deviceBindRequest);

    /**
     * 解析设备信息
     * @param bindRequest
     * @return
     */
    DeviceUser parseDeviceInfo(DeviceBindRequest bindRequest);

    /**
     * 执行设备绑定操作
     * @param deviceBind
     * @return
     */
    Integer doBind(DeviceBind deviceBind);
}
